@model OurWedding1.Models.Guest
@using OurWedding1

@* This partial view defines form fields that will appear when creating and editing entities *@
@Html.HiddenFor(model => model.WeddingId)
@Html.HiddenFor(model=>model.GuestGroupId)
<div class="editor-label">
    @Html.LabelFor(model => model.FirstName)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.FirstName)
    @Html.ValidationMessageFor(model => model.FirstName)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.LastName)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.LastName)
    @Html.ValidationMessageFor(model => model.LastName)
</div>

<div class="editor-label">
    @Html.LabelFor(m=>m.GuestFunctionId)
</div>
<div class="editor-field">
    @Html.DropDownListFor(model => model.GuestFunctionId, ((IEnumerable<OurWedding1.Models.GuestFunction>)ViewBag.PossibleGuestFunctions).Select(option => new SelectListItem {
        Text = (option == null ? Resources.None : option.Name), 
        Value = option.GuestFunctionId.ToString(),
        Selected = (Model != null) && (option.GuestFunctionId == Model.GuestFunctionId)
    }), Resources.None)
    @Html.ValidationMessageFor(model => model.GuestFunctionId)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.isHotelNeeded)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.isHotelNeeded)
    @Html.ValidationMessageFor(model => model.isHotelNeeded)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.isNotIncluded)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.isNotIncluded)
    @Html.ValidationMessageFor(model => model.isNotIncluded)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.ParticipatesInCosts)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.ParticipatesInCosts)
    @Html.ValidationMessageFor(model => model.ParticipatesInCosts)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.isConfirmed)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.isConfirmed)
    @Html.ValidationMessageFor(model => model.isConfirmed)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.Comment)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.Comment)
    @Html.ValidationMessageFor(model => model.Comment)
</div>


